\documentclass[fleqn, final, openany]{../styles/unmphythesis}
\usepackage{../styles/qxd}
%\newtoks\temptoken

%\renewcommand{\chref}{\ref}  % reset \chref{} to \ref{} so that the inter-chapter references are correct
%\renewcommand{\id}[1]{} % uncomment everything
%\renewcommand{\qxd}[1]{}  % uncomment everything



% % % % % % % % % % % % % % % % % % %

\makeindex[columns=2, title=Index, intoc]

\begin{document}
\frontmatter

% Signature page. It should be updated before using. 
\input{../inputs/signature}
%\setcounter{page}{1}

\title{Dispersive Quantum Interface with Atoms and Nanophotonic Waveguides}

\author{Xiaodong Qi}

\degreesubject{Ph.D., Physics}

\degree{Doctor of Philosophy \\ Physics}

\documenttype{Dissertation}

\previousdegrees{B.S., Shandong University of Science and Technology College, 2007
 \\ M.S., Chinese Academy of Sciences, 2010 \\ M.Sc., Queen's University, Canada, 2012}

% Key words: quantum information, quantum measurement, spin squeezing, cold atom, nanophotonic waveguide, Green's function

\date{July 2018}	%{\today} %

\maketitle

\purl{https://doi.org/10.5281/zenodo.1216258} % A permenant website address of the author. It can be the ORCID link in the format of `https://orcid.org/XXXX-XXXX-XXXX'. I am providing a DOI for this dissertation.

%% IMPORTANT: Select ONE of the rights statement below.
%\rightsstatement{All rights reserved}
\rightsstatement{All rights reserved except where otherwise noted}
%\rightsstatement{Some rights reserved. This thesis is distributed under the ``Creative Commons Attribution-NonCommercial-ShareAlike License''}

\makecopyright
%\setcounter{page}{3}

\input{../inputs/dedication}

\begingroup % There will be an extra blank page between dedication and acknowledgments if this commad is removed.
\let\clearpage\relax
\input{../inputs/acknowledgments}
\endgroup

\input{../inputs/abstract}

\setlength{\headsep}{1.5em} %setting the space between the header and the text block

\tableofcontents 

\listoffigures

\listoftables

\input{../inputs/listofsymbols}

\input{../inputs/listofacronyms}

\mainmatter

\ExecuteMetaData[../chap1/Introduction.tex]{tag}
%\input{../chap1/Introduction}
%\meaning\tmp
\ExecuteMetaData[../chap2/WaveguideInterface.tex]{waveguideinterface}
%\CatchFileBetweenTags\temptoken{../chap2/WaveguideInterface.tex}{waveguideinterface}\the\temptoken
%\input{../chap2/WaveguideInterface}

\ExecuteMetaData[../chap3/Emissionrates.tex]{emissionrates}

\ExecuteMetaData[../chap4/QuantumDynamics.tex]{quantumdynamics}
%\input{../chap3/QuantumDynamics}

%\chapter{QND measurement and spin squeezing using the birefringence effect}
\ExecuteMetaData[../chap5/Birefringence.tex]{birefringenceprotocol}
%\input{../chap4/Birefringence}

%\chapter{QND measurement and spin squeezing using the Faraday effect}
%\mathversion{normal}
\ExecuteMetaData[../chap6/CooperativityEnhancement.tex]{Faradayprotocol}
%\mathversion{normal}

%\chapter{Two-color scheme towards practical spin squeezing}
%\ExecuteMetaData[../chap6/twocolor.tex]{twocolorprotocol}

%\chapter{Conclusion and outlook}
\ExecuteMetaData[../chap7/Conclusion.tex]{conclusion}

\appendix
\addcontentsline{toc}{chapter}{Appendices}

\ExecuteMetaData [../chap2/WaveguideInterface.tex]{polarizationstokesvectors}

\input{../append/MaxwellEquations}

\input{../append/BesselFunctions}

\ExecuteMetaData [../chap2/WaveguideInterface.tex]{guidedunguidedmodes}

\ExecuteMetaData [../chap2/WaveguideInterface.tex]{eigenmodes}

\ExecuteMetaData [../chap2/WaveguideInterface.tex]{paraxialexpansion}

\ExecuteMetaData [../chap2/WaveguideInterface.tex]{freespacegreenfunction}

\ExecuteMetaData [../chap2/WaveguideInterface.tex]{nanofiberradiationproblem}

\input{../append/PlanewaveDecomposition}

\ExecuteMetaData [../chap2/WaveguideInterface.tex]{choozingSWGs}


%\input{../append/FreeDipoleProjection}


%\input{../append/atomicformulas}
\ExecuteMetaData[../append/atomicformulas.tex]{atomicphysicsformulas}


\ExecuteMetaData[../chap4/QuantumDynamics.tex]{basistransfHS}


\ExecuteMetaData[../chap5/Birefringence.tex]{atomnumberdetection}

\input{../append/AtomNumberEstimation}

%\input{../chap4/DetailsOfBirefringenceProtocol}
\ExecuteMetaData[../chap5/Birefringence.tex]{birefringencerates}

\ExecuteMetaData[../chap5/Birefringence.tex]{birefringencemotioneq}


\ExecuteMetaData[../chap6/CooperativityEnhancement.tex]{quantizationaxisforFaradaysqueezing}

\ExecuteMetaData[../chap6/CooperativityEnhancement.tex]{Faradayprotocoldetails}

\ExecuteMetaData[../chap6/CooperativityEnhancement.tex]{collectiveandmicroscopicoperators}


%\ExecuteMetaData[../chap6/twocolor.tex]{opticalpumpingwithmodifiedrates}

% % % % % % % % % % % % % % % % % % % % % % % % % % % %
\backmatter
\addcontentsline{toc}{chapter}{References}
%\bibliographystyle{amsplain}
\bibliographystyle{../styles/abbrv-alpha-letters-links}
%\bibliographystyle{unsrt}
% \nocite{*}
\bibliography{../refs/Archive}

\printindex
%\cleardoublepage
%\thispagestyle{plain}
%\phantomsection
%\printindex{ai}{Author Index}
%\chaptermark{Author Index}
%\thispagestyle{plain}
%\printindex{si}{Subject Index}
%\chaptermark{Subject Index}

\end{document}          
